import Vue from 'vue'
import App from './App.vue'
import router from './router'
/*import '../public/kindeditor/kindeditor-all-min'
import '../public/kindeditor/themes/default/default.css'
import '../public/kindeditor/lang/zh-CN'*/
import '../public/js/jquery'
import './assets/style/index.css'
import './util/flexible.js'
import store from './store'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import { PullRefresh, Swipe, SwipeItem, List, Cell, Picker } from 'vant'
import VueCropper from 'vue-cropper'
import fabric from 'fabric'
//import VCharts from 'v-charts'
import BaiduMap from 'vue-baidu-map'
import VueCesium from 'vue-cesium'
import lang from 'vue-cesium/lang/zh-hans'
Vue.use(VueCesium, {
  // cesiumPath is the web service address that guides the use of Cesium.js, which can be a local or CDN address such as
  // cesiumPath: /static/Cesium/Cesium.js
  // cesiumPath: 'https://unpkg.com/cesium/Build/Cesium/Cesium.js'
  // cesiumPath: 'https://cdn.jsdelivr.net/npm/cesium@latest/Build/Cesium/Cesium.js'
  cesiumPath: 'https://cdn.jsdelivr.net/npm/cesium@latest/Build/Cesium/Cesium.js',
  // If you need to use Cesium ion resources, you need to specify it. Go to https://cesium.com/ion/ to apply for an account and get Access Token. If it is not specified, it may cause the loading of CesiumIon's online images and terrain to fail.
  accessToken: 'E1AvqC97fThW8fj4srkktSEMA9xlWAWVS9MSH7DJywG9TF3tnKhM3iMmV0nHJGidztjvbxYg257QMdRr5L2LG3oFGWSLtQ568Tw',
  lang: lang // 2.0.3+ //  zh-hans
})

Vue.use(BaiduMap, {
	/* Visit http://lbsyun.baidu.com/apiconsole/key for details about app key. */
	ak: 'L3gfGpsqpWKGtYsVYrS4Wgz5'
})

Vue.use(fabric)
Vue.use(VueCropper)
Vue.use(PullRefresh)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(List)
Vue.use(Cell)
Vue.use(Picker)
Vue.use(Element, { size: 'small', zIndex: 3000 })
//Vue.use(VCharts)

Vue.config.productionTip = false
Array.prototype.empty = function () {
  while(this.length > 0) {
    this.pop();
  }
  return this;
}
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
